'''
* This is the projet for Brtc LlmOps Platform
* @Author Leon-liao <liaosiliang@alltman.com>
* @Description //TODO 
* @File: study_for.py
* @Time: 2025/6/18
* @All Rights Reserve By Brtc
'''
# for 学习
""" 
语法：
for iterrater in squen:
    每次遍历的都是一个  迭代器的内容
"""
# 打印每一个字符
str_test = "ASASDFGHJKLWERTYUIDCVBNMDFGHJKERTYHJK"

for one_str in str_test:
    print(f" [{one_str}]  ", end="", flush=True)
print("\n")

# 打印 1 到 10
# range(start, end , step)
for one_num in range(1, 11, 5):
    print(f" [{one_num}]  ", end="", flush=True)
print("\n")


# 练习计算  1+2+3 ,,,,,,+ 100= sum
test_sum = 0
for one_num in range(1, 101, 1):
    test_sum = test_sum + one_num

print(f'1-100的和是{test_sum}')
# (n+1)n/2=(100+1)*100/2 = 5050

# 打印乘法口诀表
"""  
1*1 = 1
1*1=1   1*2 = 2
"""
for one_line in range(1, 10, 1):
    for item in range(1, one_line+1, 1):
        print(f"{item} X {one_line } = {item*one_line}   ", end="", flush=True)

    print("\n")
print("\n")
